<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>My Project: M:/移动硬盘/曹健/DX3D完成作业/619/D3DX封装/src/Platform.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.9.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Platform.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_platform_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//平台类，存储公共数据</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;</div>
<div class="line"><a name="l00005"></a><span class="lineno"><a class="line" href="class_c_platform.html">    5</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_c_platform.html">CPlatform</a>:<span class="keyword">public</span> <a class="code" href="class_singleton.html">Singleton</a>&lt;CPlatform&gt;</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;{</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;    <span class="keywordtype">void</span>                <a class="code" href="class_c_platform.html#ae2eba68f9508b5ba30b6f992180b5944">AddResource</a>(<span class="keywordtype">string</span> key,<span class="keywordtype">void</span>* res);<span class="comment">//添加资源</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;    <span class="keywordtype">void</span>                <a class="code" href="class_c_platform.html#acd7cf4c64c07858dc882abbee9f2920f">DelResource</a>(<span class="keywordtype">string</span> key);<span class="comment">//删除指定的资源</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;    <span class="keywordtype">void</span>*               <a class="code" href="class_c_platform.html#a9301d720c953a7b80502ebe3089216d8">FindResource</a>(<span class="keywordtype">string</span> key);<span class="comment">//查找资源</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="class_c_platform.html#aabae13883cbee5c34173f289129c50a4">   13</a></span>&#160;    map&lt;string,void*&gt;       <a class="code" href="class_c_platform.html#aabae13883cbee5c34173f289129c50a4">_mapPlat</a>;<span class="comment">//排序二叉树结构去保存资源</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;};</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div>
<div class="ttc" id="class_singleton_html"><div class="ttname"><a href="class_singleton.html">Singleton</a></div><div class="ttdef"><b>Definition:</b> Singleton.h:3</div></div>
<div class="ttc" id="class_c_platform_html_acd7cf4c64c07858dc882abbee9f2920f"><div class="ttname"><a href="class_c_platform.html#acd7cf4c64c07858dc882abbee9f2920f">CPlatform::DelResource</a></div><div class="ttdeci">void DelResource(string key)</div><div class="ttdef"><b>Definition:</b> Platform.cpp:8</div></div>
<div class="ttc" id="class_c_platform_html_a9301d720c953a7b80502ebe3089216d8"><div class="ttname"><a href="class_c_platform.html#a9301d720c953a7b80502ebe3089216d8">CPlatform::FindResource</a></div><div class="ttdeci">void * FindResource(string key)</div><div class="ttdef"><b>Definition:</b> Platform.cpp:15</div></div>
<div class="ttc" id="class_c_platform_html_ae2eba68f9508b5ba30b6f992180b5944"><div class="ttname"><a href="class_c_platform.html#ae2eba68f9508b5ba30b6f992180b5944">CPlatform::AddResource</a></div><div class="ttdeci">void AddResource(string key, void *res)</div><div class="ttdef"><b>Definition:</b> Platform.cpp:3</div></div>
<div class="ttc" id="class_c_platform_html"><div class="ttname"><a href="class_c_platform.html">CPlatform</a></div><div class="ttdef"><b>Definition:</b> Platform.h:5</div></div>
<div class="ttc" id="class_c_platform_html_aabae13883cbee5c34173f289129c50a4"><div class="ttname"><a href="class_c_platform.html#aabae13883cbee5c34173f289129c50a4">CPlatform::_mapPlat</a></div><div class="ttdeci">map&lt; string, void * &gt; _mapPlat</div><div class="ttdef"><b>Definition:</b> Platform.h:13</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2018年 七月 1日 星期日 22:10:09 , 为 My Project使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
